let p = [
    {
        id: 1,
        name: '系统管理',
        code: 'system',
        description: '系统管理模块',
        module: 'system',
        type: 'menu',
        parent_id: null,
        sort_order: 1,
        risk_list: [],
        children: [
            {
                id: 2,
                name: '用户管理',
                code: 'user',
                description: '用户管理模块',
                module: 'user',
                type: 'menu',
                parent_id: 1,
                sort_order: 1,
                risk_list: [],
                children: [
                    {
                        id: 3,
                        name: '用户列表',
                        code: 'user:list',
                        description: '查看用户列表',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 4,
                        name: '用户详情',
                        code: 'user:info',
                        description: '查看用户详情',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 5,
                        name: '更新用户',
                        code: 'user:update',
                        description: '更新用户信息',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 3,
                        risk_list: [],
                    },
                    {
                        id: 6,
                        name: '更新密码',
                        code: 'user:update-password',
                        description: '更新用户密码',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 4,
                        risk_list: [],
                    },
                    {
                        id: 7,
                        name: '用户权限树',
                        code: 'user:permission-tree',
                        description: '查看用户权限树',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 5,
                        risk_list: [],
                    },
                    {
                        id: 8,
                        name: '刷新令牌',
                        code: 'user:refresh-token',
                        description: '刷新用户令牌',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 6,
                        risk_list: [],
                    },
                    {
                        id: 9,
                        name: '课程成员列表',
                        code: 'user:course-members',
                        description: '查看课程成员列表',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 7,
                        risk_list: [],
                    },
                    {
                        id: 10,
                        name: '导入课程成员',
                        code: 'user:import-course-members',
                        description: '导入课程成员',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 8,
                        risk_list: [],
                    },
                    {
                        id: 11,
                        name: '导入课程成员检查',
                        code: 'user:import-course-members-check',
                        description: '检查导入课程成员',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 9,
                        risk_list: [],
                    },
                    {
                        id: 12,
                        name: '用户课程列表',
                        code: 'user:course-list',
                        description: '查看用户课程列表',
                        module: 'user',
                        type: 'operation',
                        parent_id: 2,
                        sort_order: 10,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 13,
                name: '用户偏好管理',
                code: 'user-preference',
                description: '用户偏好管理模块',
                module: 'user-preference',
                type: 'menu',
                parent_id: 1,
                sort_order: 2,
                risk_list: [],
                children: [
                    {
                        id: 14,
                        name: '获取用户偏好',
                        code: 'user-preference:get',
                        description: '获取用户偏好设置',
                        module: 'user-preference',
                        type: 'operation',
                        parent_id: 13,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 15,
                        name: '更新用户偏好',
                        code: 'user-preference:update',
                        description: '更新用户偏好设置',
                        module: 'user-preference',
                        type: 'operation',
                        parent_id: 13,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 16,
                        name: '用户偏好列表',
                        code: 'user-preference:list',
                        description: '查看用户偏好列表',
                        module: 'user-preference',
                        type: 'operation',
                        parent_id: 13,
                        sort_order: 3,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 17,
                name: '角色管理',
                code: 'role',
                description: '角色管理模块',
                module: 'role',
                type: 'menu',
                parent_id: 1,
                sort_order: 3,
                risk_list: [],
                children: [
                    {
                        id: 18,
                        name: '角色列表',
                        code: 'role:list',
                        description: '查看角色列表',
                        module: 'role',
                        type: 'operation',
                        parent_id: 17,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 19,
                        name: '角色详情',
                        code: 'role:info',
                        description: '查看角色详情',
                        module: 'role',
                        type: 'operation',
                        parent_id: 17,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 20,
                        name: '保存角色',
                        code: 'role:save',
                        description: '创建或更新角色',
                        module: 'role',
                        type: 'operation',
                        parent_id: 17,
                        sort_order: 3,
                        risk_list: [],
                    },
                    {
                        id: 21,
                        name: '删除角色',
                        code: 'role:delete',
                        description: '删除角色',
                        module: 'role',
                        type: 'operation',
                        parent_id: 17,
                        sort_order: 4,
                        risk_list: [],
                    },
                    {
                        id: 22,
                        name: '切换角色状态',
                        code: 'role:toggle',
                        description: '启用或禁用角色',
                        module: 'role',
                        type: 'operation',
                        parent_id: 17,
                        sort_order: 5,
                        risk_list: [],
                    },
                    {
                        id: 23,
                        name: '角色权限树',
                        code: 'role:permission-tree',
                        description: '查看角色权限树',
                        module: 'role',
                        type: 'operation',
                        parent_id: 17,
                        sort_order: 6,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 24,
                name: '权限管理',
                code: 'permission',
                description: '权限管理模块',
                module: 'permission',
                type: 'menu',
                parent_id: 1,
                sort_order: 4,
                risk_list: [],
                children: [
                    {
                        id: 25,
                        name: '权限树',
                        code: 'permission:tree',
                        description: '查看权限树',
                        module: 'permission',
                        type: 'operation',
                        parent_id: 24,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 26,
                        name: '权限详情',
                        code: 'permission:info',
                        description: '查看权限详情',
                        module: 'permission',
                        type: 'operation',
                        parent_id: 24,
                        sort_order: 2,
                        risk_list: [],
                    },
                ],
            },
        ],
    },
    {
        id: 27,
        name: '课程管理',
        code: 'course',
        description: '课程管理模块',
        module: 'course',
        type: 'menu',
        parent_id: null,
        sort_order: 2,
        risk_list: [],
        children: [
            {
                id: 28,
                name: '添加课程',
                code: 'course:add',
                description: '添加课程',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 1,
                risk_list: [],
            },
            {
                id: 29,
                name: '课程列表',
                code: 'course:list',
                description: '查看课程列表',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 2,
                risk_list: [],
            },
            {
                id: 30,
                name: '课程详情',
                code: 'course:info',
                description: '查看课程详情',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 3,
                risk_list: [],
            },
            {
                id: 31,
                name: '更新课程',
                code: 'course:update',
                description: '更新课程信息',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 4,
                risk_list: [],
            },
            {
                id: 32,
                name: '调整课程顺序',
                code: 'course:adjust-order',
                description: '调整课程顺序',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 5,
                risk_list: [],
            },
            {
                id: 33,
                name: '删除课程',
                code: 'course:delete',
                description: '删除课程',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 6,
                risk_list: [],
            },
            {
                id: 34,
                name: '移动课程分类',
                code: 'course:move-to-category',
                description: '移动课程到指定分类',
                module: 'course',
                type: 'operation',
                parent_id: 27,
                sort_order: 7,
                risk_list: [],
            },
            {
                id: 35,
                name: '课程分类',
                code: 'category',
                description: '课程分类管理',
                module: 'category',
                type: 'menu',
                parent_id: 27,
                sort_order: 1,
                risk_list: [],
                children: [
                    {
                        id: 36,
                        name: '添加分类',
                        code: 'category:add',
                        description: '添加课程分类',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 37,
                        name: '分类列表',
                        code: 'category:list',
                        description: '查看课程分类列表',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 38,
                        name: '分类详情',
                        code: 'category:info',
                        description: '查看课程分类详情',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 3,
                        risk_list: [],
                    },
                    {
                        id: 39,
                        name: '更新分类',
                        code: 'category:update',
                        description: '更新课程分类',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 4,
                        risk_list: [],
                    },
                    {
                        id: 40,
                        name: '删除分类',
                        code: 'category:delete',
                        description: '删除课程分类',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 5,
                        risk_list: [],
                    },
                    {
                        id: 41,
                        name: '移动分类',
                        code: 'category:move',
                        description: '移动课程分类',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 6,
                        risk_list: [],
                    },
                    {
                        id: 42,
                        name: '调整分类顺序',
                        code: 'category:adjust-order',
                        description: '调整课程分类顺序',
                        module: 'category',
                        type: 'operation',
                        parent_id: 35,
                        sort_order: 7,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 43,
                name: '单元管理',
                code: 'unit',
                description: '单元管理模块',
                module: 'unit',
                type: 'menu',
                parent_id: 27,
                sort_order: 2,
                risk_list: [],
                children: [
                    {
                        id: 44,
                        name: '单元列表',
                        code: 'unit:list',
                        description: '查看单元列表',
                        module: 'unit',
                        type: 'operation',
                        parent_id: 43,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 45,
                        name: '单元详情',
                        code: 'unit:info',
                        description: '查看单元详情',
                        module: 'unit',
                        type: 'operation',
                        parent_id: 43,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 46,
                        name: '批量保存单元',
                        code: 'unit:batch-save',
                        description: '批量保存单元',
                        module: 'unit',
                        type: 'operation',
                        parent_id: 43,
                        sort_order: 3,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 47,
                name: '资源管理',
                code: 'resource',
                description: '资源管理模块',
                module: 'resource',
                type: 'menu',
                parent_id: 27,
                sort_order: 3,
                risk_list: [],
                children: [
                    {
                        id: 48,
                        name: '文件夹树',
                        code: 'resource:folder:tree',
                        description: '查看文件夹树结构',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 49,
                        name: '保存文件夹',
                        code: 'resource:folder:save',
                        description: '保存文件夹资源',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 50,
                        name: '下载文件夹',
                        code: 'resource:folder:download',
                        description: '下载文件夹资源',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 3,
                        risk_list: [],
                    },
                    {
                        id: 51,
                        name: '上传资源',
                        code: 'resource:upload',
                        description: '上传资源文件',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 4,
                        risk_list: [],
                    },
                    {
                        id: 52,
                        name: '视频信息',
                        code: 'resource:video:info',
                        description: '查看视频资源信息',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 5,
                        risk_list: [],
                    },
                    {
                        id: 53,
                        name: '文件信息',
                        code: 'resource:file:info',
                        description: '查看文件资源信息',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 6,
                        risk_list: [],
                    },
                    {
                        id: 54,
                        name: '保存视频进度',
                        code: 'resource:video:save-progress',
                        description: '保存视频观看进度',
                        module: 'resource',
                        type: 'operation',
                        parent_id: 47,
                        sort_order: 7,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 55,
                name: '考试管理',
                code: 'quiz',
                description: '考试管理模块',
                module: 'quiz',
                type: 'menu',
                parent_id: 27,
                sort_order: 4,
                risk_list: [],
                children: [
                    {
                        id: 56,
                        name: '获取测验',
                        code: 'quiz:get',
                        description: '获取测验内容',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 57,
                        name: '提交答案',
                        code: 'quiz:submit-answer',
                        description: '提交测验答案',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 2,
                        risk_list: [],
                    },
                    {
                        id: 58,
                        name: '用户答案列表',
                        code: 'quiz:user-answer-list',
                        description: '查看用户答案列表',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 3,
                        risk_list: [],
                    },
                    {
                        id: 59,
                        name: '答案详情',
                        code: 'quiz:answer-detail',
                        description: '查看答案详情',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 4,
                        risk_list: [],
                    },
                    {
                        id: 60,
                        name: '测验详情',
                        code: 'quiz:detail',
                        description: '查看测验详情',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 5,
                        risk_list: [],
                    },
                    {
                        id: 61,
                        name: '答卷列表',
                        code: 'quiz:answer-list',
                        description: '查看答卷列表',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 6,
                        risk_list: [],
                    },
                    {
                        id: 62,
                        name: '导出答卷',
                        code: 'quiz:export-csv',
                        description: '导出答卷为CSV',
                        module: 'quiz',
                        type: 'operation',
                        parent_id: 55,
                        sort_order: 7,
                        risk_list: [],
                    },
                ],
            },
            {
                id: 70,
                name: '反思报告',
                code: 'reflection',
                description: '反思报告模块',
                module: 'reflection',
                type: 'menu',
                parent_id: 27,
                sort_order: 5,
                risk_list: [],
                children: [
                    {
                        id: 71,
                        name: '获取课程反思',
                        code: 'reflection:course:get',
                        description: '获取课程反思报告',
                        module: 'reflection',
                        type: 'operation',
                        parent_id: 70,
                        sort_order: 1,
                        risk_list: [],
                    },
                    {
                        id: 72,
                        name: '课程反思列表',
                        code: 'reflection:course:list',
                        description: '查看课程反思报告列表',
                        module: 'reflection',
                        type: 'operation',
                        parent_id: 70,
                        sort_order: 2,
                        risk_list: [],
                    },
                ],
            },
        ],
    },
    {
        id: 63,
        name: '网站信息管理',
        code: 'site-info',
        description: '网站信息管理模块',
        module: 'site-info',
        type: 'menu',
        parent_id: null,
        sort_order: 3,
        risk_list: [],
        children: [
            {
                id: 64,
                name: '添加网站信息',
                code: 'site-info:add',
                description: '添加网站信息',
                module: 'site-info',
                type: 'operation',
                parent_id: 63,
                sort_order: 1,
                risk_list: [],
            },
            {
                id: 65,
                name: '网站信息列表',
                code: 'site-info:list',
                description: '查看网站信息列表',
                module: 'site-info',
                type: 'operation',
                parent_id: 63,
                sort_order: 2,
                risk_list: [],
            },
            {
                id: 66,
                name: '网站信息详情',
                code: 'site-info:detail',
                description: '查看网站信息详情',
                module: 'site-info',
                type: 'operation',
                parent_id: 63,
                sort_order: 3,
                risk_list: [],
            },
            {
                id: 67,
                name: 'FAQ列表',
                code: 'site-info:faq-list',
                description: '查看FAQ列表',
                module: 'site-info',
                type: 'operation',
                parent_id: 63,
                sort_order: 4,
                risk_list: [],
            },
            {
                id: 68,
                name: '公告列表',
                code: 'site-info:announcement-list',
                description: '查看公告列表',
                module: 'site-info',
                type: 'operation',
                parent_id: 63,
                sort_order: 5,
                risk_list: [],
            },
            {
                id: 69,
                name: '联系我们列表',
                code: 'site-info:contact-list',
                description: '查看联系我们列表',
                module: 'site-info',
                type: 'operation',
                parent_id: 63,
                sort_order: 6,
                risk_list: [],
            },
        ],
    },
]
